
/*
 * This is the extension activity for the 'send' activity associated
 * with service '{http://www.pi4soa.org/AuctionHouse}SellerRole'
 * and behavior 'AuctionHouseProcess'. The name of the send
 * activity is 'CreateAuctionListingReq'.
 */
package org.pi4soa.auctionhouse.sellerrole.auctionhouseprocess;

import org.pi4soa.service.extensions.DefaultActivityExtension;
import org.pi4soa.service.extensions.SendActivityExtension;
import org.pi4soa.service.extensions.ExtensionContext;
import org.pi4soa.service.UnresolvedConstraintException;
import org.pi4soa.service.ServiceException;
import org.pi4soa.service.DeferProcessingException;

/**
 * This class has been autogenerated to implement the custom
 * send activity within a service endpoint description.
 */
public class CreateAuctionListingReqSend extends DefaultActivityExtension
					implements SendActivityExtension {

	/**
	 * The constructor for the send activity extension.
	 */
	public CreateAuctionListingReqSend() {
	}
	
	/**
	 * This method returns the contents that should be sent
	 * by the send activity within the behavioral model.
	 * 
	 * @param context The context
	 * @return The message content
	 * @exception UnresolvedConstraintException Delay sending
	 * 				the message until a constraint is satisfied
	 * @exception DeferProcessingException Suspend processing
	 * @exception ServiceException Failed to get message content
	 */
	public java.io.Serializable getMessageContent(ExtensionContext context)
				throws UnresolvedConstraintException,
					DeferProcessingException, ServiceException {
		java.io.Serializable ret="<auctionListingRequest id=\"1\">" +
				"	<auctionItem id=\"1\" sellerId=\"1\">" +
				"		<description></description>" +
				"		<startPrice></startPrice>" +
				"		<paymentMethod></paymentMethod>" +
				"		<shippingCost></shippingCost>" +
				"		<expirationDate></expirationDate>" +
				"	</auctionItem>" +
				"</auctionListingRequest>";
		
		// TODO: Add code to determine the message contents
		// to be sent.
		
		return(ret); 
	}
}	